#ifndef MAINCONTROLLER_H
#define MAINCONTROLLER_H

#include "loginview.h"
#include "mainwindow.h"
#include "studentview.h"

class MainController
{
public:
    MainController();

    static MainController *getInstance();

    //
    void initLoginView(LoginView *view);
    void showLoginView();
    void hideLoginView();
    void showMainView();
    void hideMainView();
    void showStudentView();
    void hideStudentView();
private:
    static MainController *s_instance;

    LoginView *m_loginView;
    MainWindow *m_mainView;
    StudentView *m_studentView;
};

#endif // MAINCONTROLLER_H
